package cn.jilian.meta.handler.domain;

import java.util.Arrays;
import java.util.Collection;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;

import cn.jilian.meta.handler.support.FunctionSerializer;

@JsonSerialize(using = FunctionSerializer.class)
public class Function {
	
	public Function() {
		
	}
	
	public Function(String formula) {
		
	}
	
	public Function(String params,String body) {
		String[] args=params.split(",");
		this.params=Arrays.asList(args);
		this.body=body;
	}

	private Collection<String> params;
	
	private String body;
	
	private String name;

	public Collection<String> getParams() {
		return params;
	}

	public void setParams(Collection<String> params) {
		this.params = params;
	}

	public String getBody() {
		return body;
	}

	public void setBody(String body) {
		this.body = body;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
}
